<?php

declare (strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Controller\agent;

use App\Dao\AgentBankDao;
use App\Request\Agent\UserBank\AddBankRequest;
use App\Service\Agent\MainService;
use App\Service\Agent\UserBankService;
use App\Middleware\User\AgentMiddleware;

use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\HttpServer\Annotation\Middleware;

/**
 * 首页控制器
 *
 * @AutoController()
 * @Middleware(AgentMiddleware::class)
 * @author 张昊(2396675557@qq.com)
 * @package App\Controller\admin
 */
class MainController extends Controller
{

    /**
     * @Inject
     * @var MainService
     */
    public $main_service;


    /**
     * 首页服务
     */
    public function main()
    {
        $result = $this->main_service->main();

        $this->success( $result );
    }

    /**
     * 分公司首页
     */
    public function company()
    {
        $result = $this->main_service->company();

        $this->success($result);
    }

}